/* eslint valid-jsdoc: "off" */

'use strict';

/**
 * @param {Egg.EggAppInfo} appInfo app info
 */
module.exports = appInfo => {
    /**
     * built-in config
     * @type {Egg.EggAppConfig}
     **/
    const config = exports = {};
    // add your middleware config here
    config.middleware = ['trace'];
    config.alinode = {
        server: 'wss://agentserver.node.aliyun.com:8080',
        appid: '86888',
        secret: 'b238248145baff4234a9c0edc4c87cad6c92f821'
    }
    // add your user config here
    const userConfig = {
        cluster: {
            listen: {
                port: 7001
            }
        }
    };
    userConfig.oss = {
        "wwycda": {
            accessKeyId: "LTAI4G6LUDduWUyHsj5xZNjf",
            accessKeySecret: "gmUfkSG73idCxCjW4kBfvviQNSc8lR",
            bucket: "wwycda",
            endpoint: "oss-cn-beijing.aliyuncs.com",
            ossDomainName: "https://wwycda.oss-cn-beijing.aliyuncs.com"
        },
        defaultBucket: "wwycda"
    }
    userConfig.server = {
        tempDir: "D:/temp"
    }

    return {
        ...config,
        ...userConfig,
    };
};
